package com.squirrel.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * CommentarySubtitles 弹幕对象
 * </p>
 *
 * @author 关远键
 * @since 2021/11/11 16:06
 */
@Data
@Accessors(chain = true)
@TableName("commentary_subtitles")
@ApiModel(value = "CommentarySubtitles对象", description = "")
public class CommentarySubtitles extends Model<CommentarySubtitles> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("弹幕id")
    @TableId(value = "commentary_subtitles_id", type = IdType.AUTO)
    private Integer commentarySubtitlesId;

    @ApiModelProperty("视频id")
    @TableField("video_id")
    private Integer videoId;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("弹幕内容")
    @TableField("DM_text")
    private String dmText;

    @ApiModelProperty("弹幕在视频出现时间")
    @TableField("DM_time")
    private Float dmTime;

    @ApiModelProperty("是弹幕的模式1…3 滚动弹幕 4底端弹幕 5顶端弹幕 6.逆向弹幕 7精准定位 8高级弹幕")
    @TableField("DM_mode")
    private Integer dmMode;

    @ApiModelProperty("12非常小,16特小,18小,25中,36大,45很大,64特别大")
    @TableField("DM_font")
    private Integer dmFont;

    @ApiModelProperty("字体的颜色以HTML颜色的十进制为准")
    @TableField("DM_color")
    private Long dmColor;

    @ApiModelProperty("发送弹幕的时间戳")
    @TableField("DM_realTime")
    private Long dmRealtime;

    @ApiModelProperty("弹幕池 0普通池 1字幕池 2特殊池（高级弹幕）")
    @TableField("DM_pool")
    private Integer dmPool;


    @Override
    public Serializable pkVal() {
        return this.commentarySubtitlesId;
    }

}
